﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserDetail.aspx.cs" Inherits="MedicalCare.Admin.UserDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="pnlUser" runat="server" GroupingText="用户基本信息">
    <table>
<tr>
    <td>姓名</td>
    <td>
        <asp:TextBox ID="tbUserName" runat="server" Width="200px"></asp:TextBox>
    </td>
    <td>身份证号码</td>
    <td>
        <asp:TextBox ID="tbUserIDNumber" runat="server" Width="200px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td>年龄</td>
    <td><asp:TextBox ID="tbUserAage" runat="server" Width="200px"></asp:TextBox></td>
    <td>性别</td>
    <td>
        <asp:RadioButtonList ID="rblUserGender" runat="server" 
            RepeatDirection="Horizontal">
            <asp:ListItem Selected="True" Value="M">男</asp:ListItem>
            <asp:ListItem Value="F">女</asp:ListItem>
        </asp:RadioButtonList>
    </td>
</tr>

<tr>
    <td>角色</td>
    <td><asp:DropDownList ID="ddlUserRole" runat="server" Width="200px" 
            AutoPostBack ="true"
            onselectedindexchanged="ddlUserRole_SelectedIndexChanged" ></asp:DropDownList></td>
    <td>手机号码</td>
    <td>
        <asp:TextBox ID="tbUserMobile" runat="server" Width="200px"></asp:TextBox>
    </td>
</tr>

<tr>
    <td class="style1">QQ号码</td>
    <td class="style1">
        <asp:TextBox ID="tbUserQQ" runat="server" Width="200px"></asp:TextBox>
    </td>
        <td class="style1">Email</td>
    <td class="style1"><asp:TextBox ID="tbUserEmail" runat="server" Width="200px"></asp:TextBox></td>
</tr>

<tr>
    <td>邮编</td>
    <td>
        <asp:TextBox ID="tbUserPostalCode" runat="server" Width="200px"></asp:TextBox>
    </td>
        <td></td>
    <td>
        
    </td>
        <td>
        
    </td>
</tr>

<tr>
    <td >
         省
     </td>
     <td colspan="3">
           <asp:DropDownList ID="ddlProvince" runat="server" Width="100px" AutoPostBack ="true"
               onselectedindexchanged="ddlProvince_SelectedIndexChanged" ></asp:DropDownList>
        市 <asp:DropDownList ID="ddlcity" runat="server" Width="100px" AutoPostBack ="true"
               onselectedindexchanged="ddlcity_SelectedIndexChanged"></asp:DropDownList>
        区 <asp:DropDownList ID="ddlDistrict" runat="server" Width="100px"></asp:DropDownList>
     </td>
</tr>

<tr>
    <td >
        详细地址 
    </td>
    <td colspan="3">
        <asp:TextBox ID="tbAddressDetail" runat="server" Width="481px"></asp:TextBox>
    </td>
</tr>

<tr>
    <td >
        备注 
    </td>
    <td colspan="3">
         <asp:TextBox ID="tbUserComment" runat="server" Width="480px"></asp:TextBox>
    </td>
</tr>

<tr>
    <td>状态</td>
    <td>
        <asp:RadioButtonList ID="rblStatus" runat="server" 
            RepeatDirection="Horizontal">
            <asp:ListItem Selected="True" Value="Y">激活</asp:ListItem>
            <asp:ListItem Value="N">停用</asp:ListItem>
        </asp:RadioButtonList>
    </td>
    <td >&nbsp;</td>
</tr>
    <tr >
    <td colspan="4">
        <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click"  />
        <asp:Button ID="btnCancel" runat="server" Text="取消" onclick="btnCancel_Click"  />
        <%--<asp:Button ID="btnAddFamily" runat="server" Text="添加被监护人+" onclick="btnAddFamily_Click"/>--%>
        <asp:Button ID="btnAddMore" runat="server" Text="添加新家属"  onclick="btnAddMore_Click" />
        <asp:Button ID="btnGetAllFamily" runat="server" Text="获取所有家属信息"  onclick="btnGetAllFamily_Click" />
     </td>
    </tr>
</table>
</asp:Panel>


     <asp:Panel ID="pnlFamily" runat="server" GroupingText="被监护者基本信息">

     <asp:DataList ID="FamilyList" runat="server" CellPadding="2" 
            onitemcommand="FamilyList_ItemCommand">
            <ItemTemplate>
                <table>
                    <tr>
                        <td>姓名</td>
                        <td><asp:TextBox ID="tbFamilyName" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>' runat="server" Width="200px"></asp:TextBox></td>
                        <td>年龄</td>
                        <td><asp:TextBox ID="tbFamilyAge" Text='<%# DataBinder.Eval(Container.DataItem, "Age")%>'  runat="server" Width="200px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>性别</td>
                        <td> 
                             <asp:RadioButtonList ID="rblFamilyGender" runat="server" RepeatDirection="Horizontal">
                                 <asp:ListItem Selected="True" Value="M">男</asp:ListItem>
                                 <asp:ListItem Value="F">女</asp:ListItem>
                             </asp:RadioButtonList>
                        </td>
                        <td>邮编</td>
                        <td><asp:TextBox ID="tbFamilyPostalCode" runat="server" Width="200px"></asp:TextBox></td>
                    </tr>

                    <tr>
                        <td>城市</td>
                        <td><asp:TextBox ID="tbFamilyCity" runat="server" Width="200px"></asp:TextBox></td>
                        <td>区</td>
                        <td><asp:TextBox ID="tbFamilyAddress1" runat="server" Width="200px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>街道</td>
                        <td><asp:TextBox  ID="tbFamilyAddress2" runat="server" Width="200px"></asp:TextBox></td>
                        <td>详细地址</td>
                        <td><asp:TextBox ID="tbFamilyAddress3" runat="server" Width="200px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>病史</td>
                        <td colspan="3">
                            <textarea id="tbMedicalHistory" cols="20" runat="server" style="width:500px" rows="4"></textarea>
                         </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnDel" runat="server" Text="删除"  CommandName="del" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Index")%>' />
                        </td>
                    </tr>
       <%-- <tr>
        <td>设备绑定</td>
            <td colspan="3">
            <asp:DropDownList ID="ddlEquimentType" AutoPostBack="true" runat="server" 
                    onselectedindexchanged="ddlEquimentType_SelectedIndexChanged" 
                    Width="150px" style="margin-right: 7px">
            </asp:DropDownList>
            &nbsp; &nbsp; 设备号
            <asp:DropDownList ID="ddlEquipments"  runat="server" Width="150px">
            </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <asp:BulletedList ID="blSelectedEquipments" runat="server">
            </asp:BulletedList>
        </tr>
        <tr>
            <td colspan="4">
              <asp:Button ID="btFamilyave" runat="server" Text="保存" onclick="btFamilyave_Click"/>
              <asp:Button ID="btFamilyCancel" runat="server" onclick="btnFamilyCancel_Click" Text="取消" />
            </td>
        </tr>--%>
                </table>
            </ItemTemplate>
        </asp:DataList>
        </asp:Panel>
</asp:Content>
